home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1 / Ian and Stuart's One (Australia).iso / Australasian Legends / Commercial / Rainbow Hill / MacDOS™ 2.0.0 / serial comms / Serial README < prev   
Text File  |  1994-06-04  |  3KB  |  81 lines

  1. The little application SendToPort allows you to send strings of
  2. characters to either the modem port (port A) or the printer
  3. port (port B).
  4.  
  5. It only starts transmission after you type a Return, but it
  6. does NOT send the return itself. In fact, it does not send
  7. any non-printing characters that you type.
  8.  
  9. If you want to send a non-printing character, you have to know
  10. its corresponding Control sequence. For example, a backspace
  11. (BS) is CNTL-H and a Carriage Return (CR) is CNTL-M. To
  12. represent the 'CNTL-' in SendToPort, you type a circumflex
  13. accent ('^'), so that a BS becomes ^H and a CR becomes ^M.
  14.  
  15. So, if you want to send a CR terminated string, you have to
  16. type a ^M at the end.
  17.  
  18. If you want to send a '^', type ^^.
  19.  
  20. Here is the full table:
  21.  
  22. Dec   Hex   CNTL   Name
  23.  
  24.   0    00   ^@     NULL  Null
  25.   1    01   ^A     SOH   Start of heading
  26.   2    02   ^B     STX   Start of text
  27.   3    03   ^C     ETX   End of text
  28.   4    04   ^D     EOT   End of transmission
  29.   5    05   ^E     ENQ   Enquiry
  30.   6    06   ^F     ACK   Acknowledge
  31.   7    07   ^G     BEL   Bell
  32.   8    08   ^H     BS    Backspace
  33.   9    09   ^I     HT    Horizontal tabulation
  34.  10    0A   ^J     LF    Line feed
  35.  11    0B   ^K     VT    Vertical tabulation
  36.  12    0C   ^L     FF    Form feed
  37.  13    0D   ^M     CR    nonmarkingreturn
  38.  14    0E   ^N     SO    Shift out
  39.  15    0F   ^O     SI    Shift in
  40.  16    10   ^P     DLE   Data link escape
  41.  17    11   ^Q     DC1   Device control 1
  42.  18    12   ^R     DC2   Device control 2
  43.  19    13   ^S     DC3   Device control 3
  44.  20    14   ^T     DC4   Device control 4
  45.  21    15   ^U     NAK   Negative acknwoledge
  46.  22    16   ^V     SYN   Synchronous idle
  47.  23    17   ^W     ETB   End of transmission block
  48.  24    18   ^X     CAN   Cancel
  49.  25    19   ^Y     EM    End of medium
  50.  26    1A   ^Z     SUB   Substitute
  51.  27    1B   ^[     ESC   Escape
  52.  28    1C   ^\     FS    File separator
  53.  29    1D   ^]     GS    Group separator
  54.  30    1E   ^~     RS    Record separator
  55.  31    1F   ^_     US    Unit separator
  56. 127    7F   ^!     DEL   Delete
  57.  
  58. Perhaps you have noticed that RS is produced by typing ^~ although
  59. the character between ']' and '_' is '^'. The reason is that the
  60. sequence ^^ is used to send a '^'. Also DEL needs a special
  61. sequence. The general rule is that SendToPort masks the first 3
  62. bits of a character if it follows a '^'.
  63.  
  64. You can use SendToPort to control a copy of MacDOS on a different
  65. system: connect the two Macs via a serial port (eg. the modem port),
  66. start SendToPort on the "master" Mac, tell SendToPort to use port
  67. A, start MacDOS on the "slave" Mac, and type at the MacDOS prompt
  68. the following command: "serial a@". After that, you can direct
  69. MacDOS remotely with commands like:
  70.    dir^m
  71.    confirm on^m
  72.  
  73. You can also use ^C to abort operations. MacDOS accepts from the
  74. serial ports the following control characters:
  75.   ^C   Aborts the current operation.
  76.   ^H   Backspace, deletes the last character typed.
  77.   ^I   Attempts to complete file and folder names.
  78.   ^M   Terminates a command and starts its execution.
  79.   ^Z   EOF, used when you use "more > filename" to store text
  80.        into a file.
  81.